<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<!-- NewPage -->
<html lang="en">
<head>
<title>TextShape (POI API Documentation)</title>
<link rel="stylesheet" type="text/css" href="../../../../../stylesheet.css" title="Style">
</head>
<body>
<script type="text/javascript"><!--
    if (location.href.indexOf('is-external=true') == -1) {
        parent.document.title="TextShape (POI API Documentation)";
    }
//-->
</script>
<noscript>
<div>JavaScript is disabled on your browser.</div>
</noscript>
<!-- ========= START OF TOP NAVBAR ======= -->
<div class="topNav"><a name="navbar_top">
<!--   -->
</a><a href="#skip-navbar_top" title="Skip navigation links"></a><a name="navbar_top_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/TextShape.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../../org/apache/poi/hslf/model/TitleMaster.html" title="class in org.apache.poi.hslf.model"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/poi/hslf/model/TextShape.html" target="_top">FRAMES</a></li>
<li><a href="TextShape.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_top">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_top");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li><a href="#field_summary">FIELD</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li><a href="#field_detail">FIELD</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_top">
<!--   -->
</a></div>
<!-- ========= END OF TOP NAVBAR ========= -->
<!-- ======== START OF CLASS DATA ======== -->
<div class="header">
<p class="subTitle">org.apache.poi.hslf.model</p>
<h2 title="Class TextShape" class="title">Class TextShape</h2>
</div>
<div class="contentContainer">
<ul class="inheritance">
<li>java.lang.Object</li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">org.apache.poi.hslf.model.Shape</a></li>
<li>
<ul class="inheritance">
<li><a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html" title="class in org.apache.poi.hslf.model">org.apache.poi.hslf.model.SimpleShape</a></li>
<li>
<ul class="inheritance">
<li>org.apache.poi.hslf.model.TextShape</li>
</ul>
</li>
</ul>
</li>
</ul>
</li>
</ul>
<div class="description">
<ul class="blockList">
<li class="blockList">
<dl>
<dt>Direct Known Subclasses:</dt>
<dd><a href="../../../../../org/apache/poi/hslf/model/AutoShape.html" title="class in org.apache.poi.hslf.model">AutoShape</a>, <a href="../../../../../org/apache/poi/hslf/model/TextBox.html" title="class in org.apache.poi.hslf.model">TextBox</a></dd>
</dl>
<hr>
<br>
<pre>public abstract class <strong>TextShape</strong>
extends <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html" title="class in org.apache.poi.hslf.model">SimpleShape</a></pre>
<div class="block">A common superclass of all shapes that can hold text.</div>
<dl><dt><span class="strong">Author:</span></dt>
  <dd>Yegor Kozlov</dd></dl>
</li>
</ul>
</div>
<div class="summary">
<ul class="blockList">
<li class="blockList">
<!-- =========== FIELD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_summary">
<!--   -->
</a>
<h3>Field Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Field Summary table, listing fields, and an explanation">
<caption><span>Fields</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Field and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected static java.awt.font.FontRenderContext</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#_frc">_frc</a></strong></code>
<div class="block">Used to calculate text bounds</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/poi/hslf/record/EscherTextboxWrapper.html" title="class in org.apache.poi.hslf.record">EscherTextboxWrapper</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#_txtbox">_txtbox</a></strong></code>
<div class="block">Escher container which holds text attributes such as
 TextHeaderAtom, TextBytesAtom ot TextCharsAtom, StyleTextPropAtom etc.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#_txtrun">_txtrun</a></strong></code>
<div class="block">TextRun object which holds actual text and format data</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AlignCenter">AlignCenter</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AlignJustify">AlignJustify</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AlignLeft">AlignLeft</a></strong></code>
<div class="block">How to align the text</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AlignRight">AlignRight</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorBottom">AnchorBottom</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorBottomBaseline">AnchorBottomBaseline</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorBottomCentered">AnchorBottomCentered</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorBottomCenteredBaseline">AnchorBottomCenteredBaseline</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorMiddle">AnchorMiddle</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorMiddleCentered">AnchorMiddleCentered</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorTop">AnchorTop</a></strong></code>
<div class="block">How to anchor the text</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorTopBaseline">AnchorTopBaseline</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorTopCentered">AnchorTopCentered</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#AnchorTopCenteredBaseline">AnchorTopCenteredBaseline</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#WrapByPoints">WrapByPoints</a></strong></code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#WrapNone">WrapNone</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#WrapSquare">WrapSquare</a></strong></code>
<div class="block">How to wrap the text</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#WrapThrough">WrapThrough</a></strong></code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>static int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#WrapTopBottom">WrapTopBottom</a></strong></code>&nbsp;</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.poi.hslf.model.SimpleShape">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.poi.hslf.model.<a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html" title="class in org.apache.poi.hslf.model">SimpleShape</a></h3>
<code><a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#_clientData">_clientData</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#_clientRecords">_clientRecords</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#DEFAULT_LINE_WIDTH">DEFAULT_LINE_WIDTH</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="fields_inherited_from_class_org.apache.poi.hslf.model.Shape">
<!--   -->
</a>
<h3>Fields inherited from class&nbsp;org.apache.poi.hslf.model.<a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a></h3>
<code><a href="../../../../../org/apache/poi/hslf/model/Shape.html#_escherContainer">_escherContainer</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#_fill">_fill</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#_parent">_parent</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#_sheet">_sheet</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#EMU_PER_CENTIMETER">EMU_PER_CENTIMETER</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#EMU_PER_INCH">EMU_PER_INCH</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#EMU_PER_POINT">EMU_PER_POINT</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#logger">logger</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#MASTER_DPI">MASTER_DPI</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#PIXEL_DPI">PIXEL_DPI</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#POINT_DPI">POINT_DPI</a></code></li>
</ul>
</li>
</ul>
<!-- ======== CONSTRUCTOR SUMMARY ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_summary">
<!--   -->
</a>
<h3>Constructor Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Constructor Summary table, listing constructors, and an explanation">
<caption><span>Constructors</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier</th>
<th class="colLast" scope="col">Constructor and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#TextShape()">TextShape</a></strong>()</code>
<div class="block">Create a new TextBox.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected </code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#TextShape(org.apache.poi.ddf.EscherContainerRecord, org.apache.poi.hslf.model.Shape)">TextShape</a></strong>(<a href="../../../../../org/apache/poi/ddf/EscherContainerRecord.html" title="class in org.apache.poi.ddf">EscherContainerRecord</a>&nbsp;escherRecord,
         <a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a>&nbsp;parent)</code>
<div class="block">Create a TextBox object and initialize it from the supplied Record container.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>&nbsp;</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#TextShape(org.apache.poi.hslf.model.Shape)">TextShape</a></strong>(<a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a>&nbsp;parent)</code>
<div class="block">Create a new TextBox.</div>
</td>
</tr>
</table>
</li>
</ul>
<!-- ========== METHOD SUMMARY =========== -->
<ul class="blockList">
<li class="blockList"><a name="method_summary">
<!--   -->
</a>
<h3>Method Summary</h3>
<table class="overviewSummary" border="0" cellpadding="3" cellspacing="0" summary="Method Summary table, listing methods, and an explanation">
<caption><span>Methods</span><span class="tabEnd">&nbsp;</span></caption>
<tr>
<th class="colFirst" scope="col">Modifier and Type</th>
<th class="colLast" scope="col">Method and Description</th>
</tr>
<tr class="altColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#afterInsert(org.apache.poi.hslf.model.Sheet)">afterInsert</a></strong>(<a href="../../../../../org/apache/poi/hslf/model/Sheet.html" title="class in org.apache.poi.hslf.model">Sheet</a>&nbsp;sh)</code>
<div class="block">When a textbox is added to  a sheet we need to tell upper-level
 <code>PPDrawing</code> about it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#createTextRun()">createTextRun</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#draw(java.awt.Graphics2D)">draw</a></strong>(java.awt.Graphics2D&nbsp;graphics)</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected <a href="../../../../../org/apache/poi/hslf/record/EscherTextboxWrapper.html" title="class in org.apache.poi.hslf.record">EscherTextboxWrapper</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getEscherTextboxWrapper()">getEscherTextboxWrapper</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getHorizontalAlignment()">getHorizontalAlignment</a></strong>()</code>
<div class="block">Gets the type of horizontal alignment for the text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginBottom()">getMarginBottom</a></strong>()</code>
<div class="block">Returns the distance (in points) between the bottom of the text frame
 and the bottom of the inscribed rectangle of the shape that contains the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginLeft()">getMarginLeft</a></strong>()</code>
<div class="block">Returns the distance (in points) between the left edge of the text frame
  and the left edge of the inscribed rectangle of the shape that contains
  the text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginRight()">getMarginRight</a></strong>()</code>
<div class="block">Returns the distance (in points) between the right edge of the
  text frame and the right edge of the inscribed rectangle of the shape
  that contains the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>float</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginTop()">getMarginTop</a></strong>()</code>
<div class="block">Returns the distance (in points) between the top of the text frame
  and the top of the inscribed rectangle of the shape that contains the text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/hslf/record/OEPlaceholderAtom.html" title="class in org.apache.poi.hslf.record">OEPlaceholderAtom</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getPlaceholderAtom()">getPlaceholderAtom</a></strong>()</code>
<div class="block">Return <code>OEPlaceholderAtom</code>, the atom that describes a placeholder.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.lang.String</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getText()">getText</a></strong>()</code>
<div class="block">Returns the text contained in this text frame.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getTextId()">getTextId</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code><a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a></code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getTextRun()">getTextRun</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getVerticalAlignment()">getVerticalAlignment</a></strong>()</code>
<div class="block">Returns the type of vertical alignment for the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>int</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getWordWrap()">getWordWrap</a></strong>()</code>
<div class="block">Returns the value indicating word wrap.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#initTextRun()">initTextRun</a></strong>()</code>&nbsp;</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>java.awt.geom.Rectangle2D</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#resizeToFitText()">resizeToFitText</a></strong>()</code>
<div class="block">Adjust the size of the TextShape so it encompasses the text inside it.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>protected void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setDefaultTextProperties(org.apache.poi.hslf.model.TextRun)">setDefaultTextProperties</a></strong>(<a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a>&nbsp;_txtrun)</code>
<div class="block">Set default properties for the  TextRun.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setHorizontalAlignment(int)">setHorizontalAlignment</a></strong>(int&nbsp;align)</code>
<div class="block">Sets the type of horizontal alignment for the text.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setHyperlink(int, int, int)">setHyperlink</a></strong>(int&nbsp;linkId,
            int&nbsp;beginIndex,
            int&nbsp;endIndex)</code>
<div class="block">Assigns a hyperlink to this text shape</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setMarginBottom(float)">setMarginBottom</a></strong>(float&nbsp;margin)</code>
<div class="block">Sets the botom margin.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setMarginLeft(float)">setMarginLeft</a></strong>(float&nbsp;margin)</code>
<div class="block">Sets the left margin.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setMarginRight(float)">setMarginRight</a></strong>(float&nbsp;margin)</code>
<div class="block">Sets the right margin.</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setMarginTop(float)">setMarginTop</a></strong>(float&nbsp;margin)</code>
<div class="block">Sets the top margin.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setSheet(org.apache.poi.hslf.model.Sheet)">setSheet</a></strong>(<a href="../../../../../org/apache/poi/hslf/model/Sheet.html" title="class in org.apache.poi.hslf.model">Sheet</a>&nbsp;sheet)</code>
<div class="block">Assign the <code>SlideShow</code> this shape belongs to</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setText(java.lang.String)">setText</a></strong>(java.lang.String&nbsp;text)</code>
<div class="block">Sets the text contained in this text frame.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setTextId(int)">setTextId</a></strong>(int&nbsp;id)</code>
<div class="block">Sets text ID</div>
</td>
</tr>
<tr class="rowColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setVerticalAlignment(int)">setVerticalAlignment</a></strong>(int&nbsp;align)</code>
<div class="block">Sets the type of vertical alignment for the text.</div>
</td>
</tr>
<tr class="altColor">
<td class="colFirst"><code>void</code></td>
<td class="colLast"><code><strong><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#setWordWrap(int)">setWordWrap</a></strong>(int&nbsp;wrap)</code>
<div class="block">Specifies how the text should be wrapped</div>
</td>
</tr>
</table>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.poi.hslf.model.SimpleShape">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.poi.hslf.model.<a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html" title="class in org.apache.poi.hslf.model">SimpleShape</a></h3>
<code><a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#createSpContainer(boolean)">createSpContainer</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getClientDataRecord(int)">getClientDataRecord</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getClientRecords()">getClientRecords</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getFillColor()">getFillColor</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getFlipHorizontal()">getFlipHorizontal</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getFlipVertical()">getFlipVertical</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getLineColor()">getLineColor</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getLineDashing()">getLineDashing</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getLineStyle()">getLineStyle</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getLineWidth()">getLineWidth</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getLogicalAnchor2D()">getLogicalAnchor2D</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#getRotation()">getRotation</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#setFillColor(java.awt.Color)">setFillColor</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#setHyperlink(org.apache.poi.hslf.model.Hyperlink)">setHyperlink</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#setLineColor(java.awt.Color)">setLineColor</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#setLineDashing(int)">setLineDashing</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#setLineStyle(int)">setLineStyle</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#setLineWidth(double)">setLineWidth</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#setRotation(int)">setRotation</a>, <a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#updateClientData()">updateClientData</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_org.apache.poi.hslf.model.Shape">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;org.apache.poi.hslf.model.<a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a></h3>
<code><a href="../../../../../org/apache/poi/hslf/model/Shape.html#getAnchor()">getAnchor</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getAnchor2D()">getAnchor2D</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getEscherChild(org.apache.poi.ddf.EscherContainerRecord, int)">getEscherChild</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getEscherProperty(org.apache.poi.ddf.EscherOptRecord, int)">getEscherProperty</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getEscherProperty(short)">getEscherProperty</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getEscherProperty(short, int)">getEscherProperty</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getFill()">getFill</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getHyperlink()">getHyperlink</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getOutline()">getOutline</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getParent()">getParent</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getShapeId()">getShapeId</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getShapeName()">getShapeName</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getShapeType()">getShapeType</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getSheet()">getSheet</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#getSpContainer()">getSpContainer</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#moveTo(float, float)">moveTo</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#setAnchor(java.awt.geom.Rectangle2D)">setAnchor</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#setEscherProperty(org.apache.poi.ddf.EscherOptRecord, short, int)">setEscherProperty</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#setEscherProperty(short, int)">setEscherProperty</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#setShapeId(int)">setShapeId</a>, <a href="../../../../../org/apache/poi/hslf/model/Shape.html#setShapeType(int)">setShapeType</a></code></li>
</ul>
<ul class="blockList">
<li class="blockList"><a name="methods_inherited_from_class_java.lang.Object">
<!--   -->
</a>
<h3>Methods inherited from class&nbsp;java.lang.Object</h3>
<code>clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait</code></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<div class="details">
<ul class="blockList">
<li class="blockList">
<!-- ============ FIELD DETAIL =========== -->
<ul class="blockList">
<li class="blockList"><a name="field_detail">
<!--   -->
</a>
<h3>Field Detail</h3>
<a name="AnchorTop">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorTop</h4>
<pre>public static final&nbsp;int AnchorTop</pre>
<div class="block">How to anchor the text</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorTop">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorMiddle">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorMiddle</h4>
<pre>public static final&nbsp;int AnchorMiddle</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorMiddle">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorBottom">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorBottom</h4>
<pre>public static final&nbsp;int AnchorBottom</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorBottom">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorTopCentered">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorTopCentered</h4>
<pre>public static final&nbsp;int AnchorTopCentered</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorTopCentered">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorMiddleCentered">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorMiddleCentered</h4>
<pre>public static final&nbsp;int AnchorMiddleCentered</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorMiddleCentered">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorBottomCentered">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorBottomCentered</h4>
<pre>public static final&nbsp;int AnchorBottomCentered</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorBottomCentered">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorTopBaseline">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorTopBaseline</h4>
<pre>public static final&nbsp;int AnchorTopBaseline</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorTopBaseline">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorBottomBaseline">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorBottomBaseline</h4>
<pre>public static final&nbsp;int AnchorBottomBaseline</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorBottomBaseline">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorTopCenteredBaseline">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorTopCenteredBaseline</h4>
<pre>public static final&nbsp;int AnchorTopCenteredBaseline</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorTopCenteredBaseline">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AnchorBottomCenteredBaseline">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AnchorBottomCenteredBaseline</h4>
<pre>public static final&nbsp;int AnchorBottomCenteredBaseline</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AnchorBottomCenteredBaseline">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WrapSquare">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WrapSquare</h4>
<pre>public static final&nbsp;int WrapSquare</pre>
<div class="block">How to wrap the text</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.WrapSquare">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WrapByPoints">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WrapByPoints</h4>
<pre>public static final&nbsp;int WrapByPoints</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.WrapByPoints">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WrapNone">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WrapNone</h4>
<pre>public static final&nbsp;int WrapNone</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.WrapNone">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WrapTopBottom">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WrapTopBottom</h4>
<pre>public static final&nbsp;int WrapTopBottom</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.WrapTopBottom">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="WrapThrough">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>WrapThrough</h4>
<pre>public static final&nbsp;int WrapThrough</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.WrapThrough">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AlignLeft">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AlignLeft</h4>
<pre>public static final&nbsp;int AlignLeft</pre>
<div class="block">How to align the text</div>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AlignLeft">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AlignCenter">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AlignCenter</h4>
<pre>public static final&nbsp;int AlignCenter</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AlignCenter">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AlignRight">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AlignRight</h4>
<pre>public static final&nbsp;int AlignRight</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AlignRight">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="AlignJustify">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>AlignJustify</h4>
<pre>public static final&nbsp;int AlignJustify</pre>
<dl><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../constant-values.html#org.apache.poi.hslf.model.TextShape.AlignJustify">Constant Field Values</a></dd></dl>
</li>
</ul>
<a name="_txtrun">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_txtrun</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a> _txtrun</pre>
<div class="block">TextRun object which holds actual text and format data</div>
</li>
</ul>
<a name="_txtbox">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>_txtbox</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/poi/hslf/record/EscherTextboxWrapper.html" title="class in org.apache.poi.hslf.record">EscherTextboxWrapper</a> _txtbox</pre>
<div class="block">Escher container which holds text attributes such as
 TextHeaderAtom, TextBytesAtom ot TextCharsAtom, StyleTextPropAtom etc.</div>
</li>
</ul>
<a name="_frc">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>_frc</h4>
<pre>protected static final&nbsp;java.awt.font.FontRenderContext _frc</pre>
<div class="block">Used to calculate text bounds</div>
</li>
</ul>
</li>
</ul>
<!-- ========= CONSTRUCTOR DETAIL ======== -->
<ul class="blockList">
<li class="blockList"><a name="constructor_detail">
<!--   -->
</a>
<h3>Constructor Detail</h3>
<a name="TextShape(org.apache.poi.ddf.EscherContainerRecord, org.apache.poi.hslf.model.Shape)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TextShape</h4>
<pre>protected&nbsp;TextShape(<a href="../../../../../org/apache/poi/ddf/EscherContainerRecord.html" title="class in org.apache.poi.ddf">EscherContainerRecord</a>&nbsp;escherRecord,
         <a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a>&nbsp;parent)</pre>
<div class="block">Create a TextBox object and initialize it from the supplied Record container.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>escherRecord</code> - <code>EscherSpContainer</code> container which holds information about this shape</dd><dd><code>parent</code> - the parent of the shape</dd></dl>
</li>
</ul>
<a name="TextShape(org.apache.poi.hslf.model.Shape)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>TextShape</h4>
<pre>public&nbsp;TextShape(<a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a>&nbsp;parent)</pre>
<div class="block">Create a new TextBox. This constructor is used when a new shape is created.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>parent</code> - the parent of this Shape. For example, if this text box is a cell
 in a table then the parent is Table.</dd></dl>
</li>
</ul>
<a name="TextShape()">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>TextShape</h4>
<pre>public&nbsp;TextShape()</pre>
<div class="block">Create a new TextBox. This constructor is used when a new shape is created.</div>
</li>
</ul>
</li>
</ul>
<!-- ============ METHOD DETAIL ========== -->
<ul class="blockList">
<li class="blockList"><a name="method_detail">
<!--   -->
</a>
<h3>Method Detail</h3>
<a name="createTextRun()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>createTextRun</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a>&nbsp;createTextRun()</pre>
</li>
</ul>
<a name="setDefaultTextProperties(org.apache.poi.hslf.model.TextRun)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setDefaultTextProperties</h4>
<pre>protected&nbsp;void&nbsp;setDefaultTextProperties(<a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a>&nbsp;_txtrun)</pre>
<div class="block">Set default properties for the  TextRun.
 Depending on the text and shape type the defaults are different:
   TextBox: align=left, valign=top
   AutoShape: align=center, valign=middle</div>
</li>
</ul>
<a name="getText()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getText</h4>
<pre>public&nbsp;java.lang.String&nbsp;getText()</pre>
<div class="block">Returns the text contained in this text frame.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the text string for this textbox.</dd></dl>
</li>
</ul>
<a name="setText(java.lang.String)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setText</h4>
<pre>public&nbsp;void&nbsp;setText(java.lang.String&nbsp;text)</pre>
<div class="block">Sets the text contained in this text frame.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>text</code> - the text string used by this object.</dd></dl>
</li>
</ul>
<a name="afterInsert(org.apache.poi.hslf.model.Sheet)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>afterInsert</h4>
<pre>protected&nbsp;void&nbsp;afterInsert(<a href="../../../../../org/apache/poi/hslf/model/Sheet.html" title="class in org.apache.poi.hslf.model">Sheet</a>&nbsp;sh)</pre>
<div class="block">When a textbox is added to  a sheet we need to tell upper-level
 <code>PPDrawing</code> about it.</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/poi/hslf/model/Shape.html#afterInsert(org.apache.poi.hslf.model.Sheet)">afterInsert</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>sh</code> - the sheet we are adding to</dd></dl>
</li>
</ul>
<a name="getEscherTextboxWrapper()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getEscherTextboxWrapper</h4>
<pre>protected&nbsp;<a href="../../../../../org/apache/poi/hslf/record/EscherTextboxWrapper.html" title="class in org.apache.poi.hslf.record">EscherTextboxWrapper</a>&nbsp;getEscherTextboxWrapper()</pre>
</li>
</ul>
<a name="resizeToFitText()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>resizeToFitText</h4>
<pre>public&nbsp;java.awt.geom.Rectangle2D&nbsp;resizeToFitText()</pre>
<div class="block">Adjust the size of the TextShape so it encompasses the text inside it.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>a <code>Rectangle2D</code> that is the bounds of this <code>TextShape</code>.</dd></dl>
</li>
</ul>
<a name="getVerticalAlignment()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getVerticalAlignment</h4>
<pre>public&nbsp;int&nbsp;getVerticalAlignment()</pre>
<div class="block">Returns the type of vertical alignment for the text.
 One of the <code>Anchor*</code> constants defined in this class.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the type of alignment</dd></dl>
</li>
</ul>
<a name="setVerticalAlignment(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setVerticalAlignment</h4>
<pre>public&nbsp;void&nbsp;setVerticalAlignment(int&nbsp;align)</pre>
<div class="block">Sets the type of vertical alignment for the text.
 One of the <code>Anchor*</code> constants defined in this class.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>align</code> - - the type of alignment</dd></dl>
</li>
</ul>
<a name="setHorizontalAlignment(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setHorizontalAlignment</h4>
<pre>public&nbsp;void&nbsp;setHorizontalAlignment(int&nbsp;align)</pre>
<div class="block">Sets the type of horizontal alignment for the text.
 One of the <code>Align*</code> constants defined in this class.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>align</code> - - the type of horizontal alignment</dd></dl>
</li>
</ul>
<a name="getHorizontalAlignment()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getHorizontalAlignment</h4>
<pre>public&nbsp;int&nbsp;getHorizontalAlignment()</pre>
<div class="block">Gets the type of horizontal alignment for the text.
 One of the <code>Align*</code> constants defined in this class.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>align - the type of horizontal alignment</dd></dl>
</li>
</ul>
<a name="getMarginBottom()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginBottom</h4>
<pre>public&nbsp;float&nbsp;getMarginBottom()</pre>
<div class="block">Returns the distance (in points) between the bottom of the text frame
 and the bottom of the inscribed rectangle of the shape that contains the text.
 Default value is 1/20 inch.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the botom margin</dd></dl>
</li>
</ul>
<a name="setMarginBottom(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMarginBottom</h4>
<pre>public&nbsp;void&nbsp;setMarginBottom(float&nbsp;margin)</pre>
<div class="block">Sets the botom margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the bottom margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginBottom()"><code>getMarginBottom()</code></a></dd></dl>
</li>
</ul>
<a name="getMarginLeft()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginLeft</h4>
<pre>public&nbsp;float&nbsp;getMarginLeft()</pre>
<div class="block">Returns the distance (in points) between the left edge of the text frame
  and the left edge of the inscribed rectangle of the shape that contains
  the text.
  Default value is 1/10 inch.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the left margin</dd></dl>
</li>
</ul>
<a name="setMarginLeft(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMarginLeft</h4>
<pre>public&nbsp;void&nbsp;setMarginLeft(float&nbsp;margin)</pre>
<div class="block">Sets the left margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the left margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginLeft()"><code>getMarginLeft()</code></a></dd></dl>
</li>
</ul>
<a name="getMarginRight()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginRight</h4>
<pre>public&nbsp;float&nbsp;getMarginRight()</pre>
<div class="block">Returns the distance (in points) between the right edge of the
  text frame and the right edge of the inscribed rectangle of the shape
  that contains the text.
  Default value is 1/10 inch.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the right margin</dd></dl>
</li>
</ul>
<a name="setMarginRight(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMarginRight</h4>
<pre>public&nbsp;void&nbsp;setMarginRight(float&nbsp;margin)</pre>
<div class="block">Sets the right margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the right margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginRight()"><code>getMarginRight()</code></a></dd></dl>
</li>
</ul>
<a name="getMarginTop()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getMarginTop</h4>
<pre>public&nbsp;float&nbsp;getMarginTop()</pre>
<div class="block">Returns the distance (in points) between the top of the text frame
  and the top of the inscribed rectangle of the shape that contains the text.
  Default value is 1/20 inch.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the top margin</dd></dl>
</li>
</ul>
<a name="setMarginTop(float)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setMarginTop</h4>
<pre>public&nbsp;void&nbsp;setMarginTop(float&nbsp;margin)</pre>
<div class="block">Sets the top margin.</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>margin</code> - the top margin</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/hslf/model/TextShape.html#getMarginTop()"><code>getMarginTop()</code></a></dd></dl>
</li>
</ul>
<a name="getWordWrap()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getWordWrap</h4>
<pre>public&nbsp;int&nbsp;getWordWrap()</pre>
<div class="block">Returns the value indicating word wrap.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd>the value indicating word wrap.
  Must be one of the <code>Wrap*</code> constants defined in this class.</dd></dl>
</li>
</ul>
<a name="setWordWrap(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setWordWrap</h4>
<pre>public&nbsp;void&nbsp;setWordWrap(int&nbsp;wrap)</pre>
<div class="block">Specifies how the text should be wrapped</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>wrap</code> - the value indicating how the text should be wrapped.
  Must be one of the <code>Wrap*</code> constants defined in this class.</dd></dl>
</li>
</ul>
<a name="getTextId()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextId</h4>
<pre>public&nbsp;int&nbsp;getTextId()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>id for the text.</dd></dl>
</li>
</ul>
<a name="setTextId(int)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setTextId</h4>
<pre>public&nbsp;void&nbsp;setTextId(int&nbsp;id)</pre>
<div class="block">Sets text ID</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>id</code> - of the text</dd></dl>
</li>
</ul>
<a name="getTextRun()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getTextRun</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model">TextRun</a>&nbsp;getTextRun()</pre>
<dl><dt><span class="strong">Returns:</span></dt><dd>the TextRun object for this text box</dd></dl>
</li>
</ul>
<a name="setSheet(org.apache.poi.hslf.model.Sheet)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>setSheet</h4>
<pre>public&nbsp;void&nbsp;setSheet(<a href="../../../../../org/apache/poi/hslf/model/Sheet.html" title="class in org.apache.poi.hslf.model">Sheet</a>&nbsp;sheet)</pre>
<div class="block"><strong>Description copied from class:&nbsp;<code><a href="../../../../../org/apache/poi/hslf/model/Shape.html#setSheet(org.apache.poi.hslf.model.Sheet)">Shape</a></code></strong></div>
<div class="block">Assign the <code>SlideShow</code> this shape belongs to</div>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/poi/hslf/model/Shape.html#setSheet(org.apache.poi.hslf.model.Sheet)">setSheet</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/poi/hslf/model/Shape.html" title="class in org.apache.poi.hslf.model">Shape</a></code></dd>
<dt><span class="strong">Parameters:</span></dt><dd><code>sheet</code> - owner of this shape</dd></dl>
</li>
</ul>
<a name="initTextRun()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>initTextRun</h4>
<pre>protected&nbsp;void&nbsp;initTextRun()</pre>
</li>
</ul>
<a name="draw(java.awt.Graphics2D)">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>draw</h4>
<pre>public&nbsp;void&nbsp;draw(java.awt.Graphics2D&nbsp;graphics)</pre>
<dl>
<dt><strong>Overrides:</strong></dt>
<dd><code><a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html#draw(java.awt.Graphics2D)">draw</a></code>&nbsp;in class&nbsp;<code><a href="../../../../../org/apache/poi/hslf/model/SimpleShape.html" title="class in org.apache.poi.hslf.model">SimpleShape</a></code></dd>
</dl>
</li>
</ul>
<a name="getPlaceholderAtom()">
<!--   -->
</a>
<ul class="blockList">
<li class="blockList">
<h4>getPlaceholderAtom</h4>
<pre>public&nbsp;<a href="../../../../../org/apache/poi/hslf/record/OEPlaceholderAtom.html" title="class in org.apache.poi.hslf.record">OEPlaceholderAtom</a>&nbsp;getPlaceholderAtom()</pre>
<div class="block">Return <code>OEPlaceholderAtom</code>, the atom that describes a placeholder.</div>
<dl><dt><span class="strong">Returns:</span></dt><dd><code>OEPlaceholderAtom</code> or <code>null</code> if not found</dd></dl>
</li>
</ul>
<a name="setHyperlink(int, int, int)">
<!--   -->
</a>
<ul class="blockListLast">
<li class="blockList">
<h4>setHyperlink</h4>
<pre>public&nbsp;void&nbsp;setHyperlink(int&nbsp;linkId,
                int&nbsp;beginIndex,
                int&nbsp;endIndex)</pre>
<div class="block">Assigns a hyperlink to this text shape</div>
<dl><dt><span class="strong">Parameters:</span></dt><dd><code>linkId</code> - id of the hyperlink, @see org.apache.poi.hslf.usermodel.SlideShow#addHyperlink(Hyperlink)</dd><dd><code>beginIndex</code> - the beginning index, inclusive.</dd><dd><code>endIndex</code> - the ending index, exclusive.</dd><dt><span class="strong">See Also:</span></dt><dd><a href="../../../../../org/apache/poi/hslf/usermodel/SlideShow.html#addHyperlink(org.apache.poi.hslf.model.Hyperlink)"><code>SlideShow.addHyperlink(Hyperlink)</code></a></dd></dl>
</li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
</div>
<!-- ========= END OF CLASS DATA ========= -->
<!-- ======= START OF BOTTOM NAVBAR ====== -->
<div class="bottomNav"><a name="navbar_bottom">
<!--   -->
</a><a href="#skip-navbar_bottom" title="Skip navigation links"></a><a name="navbar_bottom_firstrow">
<!--   -->
</a>
<ul class="navList" title="Navigation">
<li><a href="../../../../../overview-summary.html">Overview</a></li>
<li><a href="package-summary.html">Package</a></li>
<li class="navBarCell1Rev">Class</li>
<li><a href="class-use/TextShape.html">Use</a></li>
<li><a href="package-tree.html">Tree</a></li>
<li><a href="../../../../../deprecated-list.html">Deprecated</a></li>
<li><a href="../../../../../index-all.html">Index</a></li>
<li><a href="../../../../../help-doc.html">Help</a></li>
</ul>
</div>
<div class="subNav">
<ul class="navList">
<li><a href="../../../../../org/apache/poi/hslf/model/TextRun.html" title="class in org.apache.poi.hslf.model"><span class="strong">PREV CLASS</span></a></li>
<li><a href="../../../../../org/apache/poi/hslf/model/TitleMaster.html" title="class in org.apache.poi.hslf.model"><span class="strong">NEXT CLASS</span></a></li>
</ul>
<ul class="navList">
<li><a href="../../../../../index.html?org/apache/poi/hslf/model/TextShape.html" target="_top">FRAMES</a></li>
<li><a href="TextShape.html" target="_top">NO FRAMES</a></li>
</ul>
<ul class="navList" id="allclasses_navbar_bottom">
<li><a href="../../../../../allclasses-noframe.html">All Classes</a></li>
</ul>
<div>
<script type="text/javascript"><!--
  allClassesLink = document.getElementById("allclasses_navbar_bottom");
  if(window==top) {
    allClassesLink.style.display = "block";
  }
  else {
    allClassesLink.style.display = "none";
  }
  //-->
</script>
</div>
<div>
<ul class="subNavList">
<li>SUMMARY:&nbsp;</li>
<li>NESTED&nbsp;|&nbsp;</li>
<li><a href="#field_summary">FIELD</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_summary">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_summary">METHOD</a></li>
</ul>
<ul class="subNavList">
<li>DETAIL:&nbsp;</li>
<li><a href="#field_detail">FIELD</a>&nbsp;|&nbsp;</li>
<li><a href="#constructor_detail">CONSTR</a>&nbsp;|&nbsp;</li>
<li><a href="#method_detail">METHOD</a></li>
</ul>
</div>
<a name="skip-navbar_bottom">
<!--   -->
</a></div>
<!-- ======== END OF BOTTOM NAVBAR ======= -->
<p class="legalCopy"><small>
                <i>Copyright 2014 The Apache Software Foundation or
        its licensors, as applicable.</i>
            </small></p>
</body>
</html>
